<template>
  <div id="app">
    <nav class="navbar">
      <div class="nav-content">
        <h1>NLP词法分析系统</h1>
        <div class="nav-links">
          <a href="" target="_blank">Tommy</a>
          <a href="#about">关于</a>
        </div>
      </div>
    </nav>
    <LexicalAnalysis />
  </div>
</template>

<script>
import LexicalAnalysis from './components/LexicalAnalysis.vue'

export default {
  name: 'App',
  components: {
    LexicalAnalysis
  }
}
</script>

<style>
:root {
  --primary-color: #2c3e50;
  --accent-color: #42b983;
  --bg-color: #f5f7fa;
  --text-color: #2c3e50;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: 'Helvetica Neue', Arial, sans-serif;
}

#app {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.navbar {
  background-color: white;
  box-shadow: 0 2px 12px 0 rgba(0,0,0,0.1);
  padding: 1rem 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.nav-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-content h1 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--primary-color);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--accent-color);
}
</style>
